from django.conf.urls import url

from apps.verifications.views import VerifyEmailView
from . import views

urlpatterns = [
    # 图形验证码
    url(r'^image_codes/(?P<uuid>[\w-]+)/$', views.ImageCodeView.as_view()),
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view()),  # 短信验证码
    url(r'^emails$', views.EmailView.as_view(), name='emails'),
    url(r'^emails/verification/$', VerifyEmailView.as_view()),  # 验证邮箱
]
